<admintpl file="header" />
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#A" data-toggle="tab">安卓列表</a></li>
            <li><a href="#B" data-toggle="tab">苹果列表</a></li>
        </ul>
        <form method="post" class="js-ajax-form" action="{:U('AdminSettings/index')}">
            <div class="tabbable">
                <div class="tab-content">
                  <div class="tab-pane active" id="A">
                        <table class="table table-hover table-bordered table-list">
                            <thead>
                                <tr>
                                    <th width="20">ID</th>
                                    <th>文件名</th>
                                    <th>文件地址</th>
                                    <th>发布时间</th>
                                    <th>文件大小</th>
                                    <!-- <th>二维码</th> -->
                                </tr>
                            </thead>
                            <tbody>
                                <foreach name="res"  key="key" item="vo">
                                    <tr>
                                        <td><b>{$key+1}</b></td>
                                        <td>
                                            {$vo.name}
                                        </td>
                                        <td>
                                            http://{$_SERVER['HTTP_HOST']}/version/apk{$vo.url}
                                        </td>
                                        <td>
                                            {$vo.time}
                                        </td>
                                        <td>
                                            {$vo.size}
                                        </td>
                                        <!-- <td>
                                            <a href="{:U('AdminSettings/edit',array('id'=>$vo['id']))}">{:L('EDIT')}</a>
                                        </td> -->
                                    </tr>
                                </foreach>
                            </tbody>
                        </table>
                  </div>

                  <div class="tab-pane" id="B">
                        <table class="table table-hover table-bordered table-list">
                            <thead>
                                <tr>
                                    <th width="20">ID</th>
                                    <th>文件名</th>
                                    <th>文件地址</th>
                                    <th>发布时间</th>
                                    <th>文件大小</th>
                                    <!-- <th>二维码</th> -->
                                </tr>
                            </thead>
                            <tbody>
                                <foreach name="resios"  key="key" item="vo">
                                    <tr>
                                        <td><b>{$key+1}</b></td>
                                        <td>
                                            {$vo.name}
                                        </td>
                                        <td>
                                            http://{$_SERVER['HTTP_HOST']}/version/ios{$vo.url}
                                        </td>
                                        <td>
                                            {$vo.time}
                                        </td>
                                        <td>
                                            {$vo.size}
                                        </td>
                                        <!-- <td>
                                            <a href="{:U('AdminSettings/edit',array('id'=>$vo['id']))}">{:L('EDIT')}</a>
                                        </td> -->
                                    </tr>
                                </foreach>
                            </tbody>
                        </table>
                  </div>
                </div>
            </div>
        </form>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>